package ink.tsg.javabase.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @Author dzsg
 * @Description 水果颜色
 **/
@Target(FIELD)
@Retention(RUNTIME)
@Documented
public @interface FruitColor {

    // 颜色枚举
    public enum Color{ BLUE,RED,GREEN };

    // 颜色属性
    Color fruitColor() default Color.GREEN;

}
